//
// Created by DuJinxin on 2022/4/1.
//
#include <stdio.h>
int maxV() {
    int i=0,a=0;
    float value;
    float maxV; //

    printf("Please enter twenty numbers:");
    scanf("%f",&value);

    maxV=value;
    a=1;
    for(i=1;i<20;i++){
        printf("please enter the %d-th value",i+1);
        scanf("%f",&value);

        if (maxV<value){
            maxV=value;
            a=i+1;
        }
    }
    printf("The greatest number entered was :%f\n",maxV);
    printf("The greatest number is number #%d",a);
    return 0;
}

